package com.zx.zxapiorder.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zx.zxapiorder.model.entity.ApiOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zx.zxapiorder.model.vo.ApiOrderStatusVo;
import org.apache.ibatis.annotations.Param;

/**
 * @author Bro
 * @description 针对表【api_order】的数据库操作Mapper
 * @createDate 2023-07-16 12:58:04
 * @Entity com.zx.zxapiorder.model.entity.ApiOrder
 */
public interface ApiOrderMapper extends BaseMapper<ApiOrder> {
    /**
     * 查询当前用户的订单信息
     *
     * @param objectPage
     * @param userId
     * @param status
     * @return
     */
    Page<ApiOrderStatusVo> getCurrentOrderInfo(Page<Object> objectPage, @Param("userId") Long userId, @Param("status") Integer status);


}




